package com.tingyukeji.fastpay.entity;

import com.google.gson.reflect.TypeToken;
import com.tingyukeji.fastpay.data.HostHelper;

import java.util.List;

/**
 * Created by Administrator on 2017/7/26.
 */

public class HomePageEntity extends BaseReqEntity {
    public String message;
    public int code;
    public boolean successful;
    public String timestamp;
    private DataBean result;

    public DataBean getData() {
        return result;
    }

    public void setData(DataBean result) {
        this.result = result;
    }

    public static class DataBean{
        public List<Data> data;
    }

    public static class Data{
        public String limitNum;
        public String created;
        public String sortOrder;
        public String name;
        public String remark;
        public String id;
        public String position;
        public int type;
        public String updated;
        public String status;
        public List<PanelContent> panelContents;
    }

    public static class PanelContent{
        public String panelId;
        public String productId;
        public String salePrice;
        public String created;
        public String fullUrl;
        public String picUrl3;
        public String type;
        public String productName;
        public String picUrl2;
        public String picUrl;
        public String subTitle;
        public String productImageBig;
        public String sortOrder;
        public String id;
        public String updated;
    }

    @Override
    public TypeHodler __getClsType() {
        TypeHodler[] types = new TypeHodler[]{
                new TypeHodler(HostHelper.HOME_INFO_WRL, new TypeToken<HomePageEntity>() {
                }.getType()),
        };
        return types[getIndex()];
    }
}
